package com.sumainfor.pc.market.controller.gmio;

import com.sumainfor.common.util.JsonResult;

import com.sumainfor.pc.market.service.gmio.CleaningHousingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


import java.util.Map;

/**
 * <p>
 * 保洁房源
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-31 14:07
 **/
@Controller
@RequestMapping("/key/cleaningHousing")
public class CleaningHousingController {

    @Autowired
    CleaningHousingService cleaningHousingService;

    /**
    * <p>
    * 保洁房源列表
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getCleanHousingList")
    public JsonResult getCleanHousingList(@RequestBody Map<String,Object> params){
        JsonResult result = new JsonResult();
        System.out.println("接受的参数"+params);
        return result.put(cleaningHousingService.getCleanHousingList(params));
    }
}
